

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.openqa.selenium.firefox.FirefoxDriver;

//public class LoginPage {
//    public static void main(String[] args) {
//       // System.setProperty("webdriver.gecko.driver", "E:\\geckodriver-v0.16.1-win32\\geckodriver.exe");
//
//        //System.setProperty("webdriver.firefox.bin","D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe");
//        System.setProperty("webdriver.chrome.driver", "E:\\chromedriver_win32.2.40\\chromedriver.exe");
//        WebDriver driver = new ChromeDriver();
//       // WebDriver driver = new FirefoxDriver();
//        driver.manage().window().maximize();
//        driver.get("http://192.168.0.165:8080/#/login");
//
//        driver.findElement(By.xpath("//input[@placeholder='用户名']")).sendKeys("客雷达测试");
//        driver.findElement(By.xpath("//input[@placeholder='密码']")).sendKeys("123456");
//        driver.findElement(By.xpath("//button[@class='el-button el-button--primary']")).click();
//
//        String text = driver.findElement(By.xpath("//*[@id=\"app\"]/div/div[1]/ul/li[1]/span")).getText();
//        Assert.assertEquals(text,"首页");
//    }首页
//}
